package j.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@EnableAutoConfiguration(exclude= {/*
								   HibernateJpaAutoConfiguration.class,
								   SecurityAutoConfiguration.class,*/
		DataSourceAutoConfiguration.class,
		JpaRepositoriesAutoConfiguration.class //禁止springboot自动加载持久化bean
})
@ImportResource(value = {"classpath:props/spring/application-context.xml"})
public class JquartzApplication {
	private static final Logger LOGGER = LoggerFactory.getLogger(JquartzApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(JquartzApplication.class, args);
		LOGGER.info("Jquartz App 启动成功！");
	}
}
